You are here: How To Guides > Installing Solr > Updating the db-data-config File

 

Updating the db-data-config File

This topic assumes you have already completed the following steps in regards to the installation of Solr on your KommerceServer web server.

  1. Install Java on your web server (skip this step if Java is already installed).
  2. Install version 5.4.1 of Apache Solr.
  3. Create a core directory on the Apache Solr UI.
  4. Copy core configuration files to your Solr directory.

Once you have completed the above steps, perform the following steps to update the db-data-config file.

  1. Navigate to the directory you created in the Creating a Core Directory for Solr topic.
  2. Open the conf folder.
  3. Open the db-data-config XML file.
  4. Open your KommerceServer web.config file and navigate to the connectionStrings section.
  5. Identify the connection string element with the name “SqlConnection

  6. Identify the following properties from the connection string:

  • Data Source
  • Initial Catalog
  • User ID
  • Password
  1. In the dataSource element of db-data-config, modify the url attribute with the values from Web.config:

    Solr dataSource url attribute field

    Web.config connection string field

    server address

    Data Source

    databaseName

    Initial Catalog

    user

    User ID

    password

    Password

  1. Save and close the db-data-config file.

Next Step

Start Solr from the Solr/bin directory